﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Formboard.Resources;

namespace Formboard
{
    public partial class AccountCreation : UserControl
    {
        public AccountCreation()
        {
            InitializeComponent();
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void buttonSendaccount_Click(object sender, EventArgs e)
        {
            String fullname = textBoxFullname.Text;
            String nickname = textBoxNickname.Text;
            String password = textBoxPass.Text;
            User newuser = new User(fullname,nickname,password);
            ((Form1)this.Parent).requester.createUser(newuser);
            ((Form1)this.Parent).goto_login_from_accountcreation();
        }
    }
}
